package com.ycz.pattern.create.builderpattern;

/**
 * @Description
 * @ClassName MealBuilder
 * @Author yanchengzhi
 * @date 2023.11.21 00:40
 */
public class MealBuilder {

    // 套餐一
    public Meal prepareVegMeal() {
        Meal meal = new Meal();
        meal.addItem(new VegBurger());
        meal.addItem(new Coke());
        return meal;
    }

    // 套餐二
    public Meal prepareNonVegMeal() {
        Meal meal = new Meal();
        meal.addItem(new ChickenBurger());
        meal.addItem(new Pepsi());
        return meal;
    }

}
